/// 答题题目数据模型
class QuizQuestionPrint {
  final String id;
  final String question; // 题目内容
  final List<String> options; // 四个选项
  final int correctAnswerIndex; // 正确答案的索引 (0-3)

  QuizQuestionPrint({
    required this.id,
    required this.question,
    required this.options,
    required this.correctAnswerIndex,
  });
}

/// 用户答题记录数据模型
class QuizAttemptPrint {
  final String id;
  final String userId; // 用户ID
  final DateTime attemptDate; // 答题日期
  final List<int> userAnswers; // 用户选择的答案索引列表
  final int correctCount; // 答对题目数量
  final bool passed; // 是否通过 (答对3题以上)
  final String? awardedBadgeId; // 获得的徽章ID (如果有)

  QuizAttemptPrint({
    required this.id,
    required this.userId,
    required this.attemptDate,
    required this.userAnswers,
    required this.correctCount,
    required this.passed,
    this.awardedBadgeId,
  });
}
